package com.qili.entity.base;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.stereotype.Component;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.OrderBy;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Author Zhangshuo
 * @date 2020/11/23 10:50
 **/
@Table(name = "base_company")
@Data
@ToString
@EqualsAndHashCode
@Component
public class BaseCompany implements Serializable {
    @Id
    @Column(name = "bc_id")
    private String bcId;

    @Column(name = "bc_name")
    private String bcName;

    @Column(name = "bc_address")
    private String bcAddress;

    @Column(name = "bc_create_time")
    private String bcCreateTime;

    @Column(name = "bc_createby")
    private String bcCreateby;

    @Column(name = "bc_note")
    private String bcNote;

    /**
    * 单位性质
    */
    @Column(name = "bc_dwxz")
    private String bcDwxz;

    /**
     * 机构代码
     */
    @Column(name = "bc_jgdm")
    private String bcJgdm;


    @OrderBy
    @Column(name = "order_num")
    private Integer orderNum;

    /**
     * 公司所在地区
     */
    @Column(name = "region")
    private String region;

}
